<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<p> 1.2 在页面B设置两个按钮，分别实现前进、后退功能</p>
		<button type="button" onclick="myforward();">前进</button>
		<button type="button" onclick="myback();">后退</button>
	</body>
	<script type="text/javascript">
		function myforward(){
			history.forward()
			location.href='c.html';
		}
		function myback(){
			history.back()
		}
	</script>
</html>
